package com.wwy.www.demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-08-28
 * Time: 18:49
 */
public class Fish extends Animal implements ISwimming{
    public Fish(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat(){
        System.out.println(this.name+"zhengzaichigouliang");
    }
    @Override
    public void swim(){
        System.out.println(this.name+"zhengzaiyouyong");
    }
}
